<template>
  <svg
    class="yindu-icon"
    width="16px"
    height="16px"
    viewBox="0 0 16 16"
    version="1.1"
    xmlns="http://www.w3.org/2000/svg"
    xmlns:xlink="http://www.w3.org/1999/xlink"
  >
    <g
      stroke="none"
      stroke-width="1"
      fill="none"
      fill-rule="evenodd"
    >
      <g transform="translate(-423.000000, -111.000000)">
        <g id="编组-6" transform="translate(423.000000, 111.000000)">
          <rect id="矩形" x="0" y="0" width="16" height="16"></rect>
          <g id="编组" transform="translate(0.000000, 2.000000)" fill="#D8D8D8">
            <polygon
              id="Fill-1"
              points="8.0001 4.6488 0.7681 0.0778 0.2321 0.9238 8.0001 5.8318 15.7681 0.9238 15.2321 0.0778"
            ></polygon>
            <path
              d="M0,12.072 L16,12.072 L16,0 L0,0 L0,12.072 Z M1,11.072 L15,11.072 L15,1.001 L1,1.001 L1,11.072 Z"
              id="Fill-2"
            ></path>
          </g>
        </g>
      </g>
    </g>
  </svg>
</template>

<script setup lang="ts">
type Props = {
  fill?: string;
};

const props = withDefaults(defineProps<Props>(), {
  fill: "#D8D8D8",
});

const fillColor = computed(() => {
  return props.fill;
});
</script>
<style scoped lang="less">
.yindu-icon {
  & path {
    fill: v-bind(fillColor);
  }
}
</style>
